--TEST--
Check for record api
--FILE--
<?php
echo "Before start:\n";
@pdl_info("test", "will not log");
echo "Will not log, num = " . pdl_records_num() . "\n";

pdl_watch(0);
pdl_enable(true);
pdl_start();
echo "\nRecord log:\n";
pdl_info("test", "info");
echo "pdl_info, num = " . pdl_records_num() . "\n";
pdl_warning("test", "warning");
echo "pdl_warning, num = " . pdl_records_num() . "\n";
pdl_error("test", "error");
echo "pdl_error, num = " . pdl_records_num() . "\n";
pdl_exception("test", new Exception());
echo "pdl_exception, num = " . pdl_records_num() . "\n";
pdl_dump("notice");
echo "pdl_notice, num = " . pdl_records_num() . "\n";

pdl_stop();
pdl_enable(false);
echo "\nStop log:\n";
@pdl_info("test", "will not log");
echo "Total log num = " . pdl_records_num() . "\n";

pdl_reset();
echo "\nReset log:\n";
echo "Total log num = " . pdl_records_num();

?>
--EXPECT--
Before start:
Will not log, num = 0

Record log:
pdl_info, num = 1
pdl_warning, num = 2
pdl_error, num = 3
pdl_exception, num = 4
pdl_notice, num = 5

Stop log:
Total log num = 5

Reset log:
Total log num = 0
